package com.tarena.csmall.sso.mapper;

import cn.tedu.mall.common.pojo.ums.model.User;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

@DS("user")
public interface UserMapper {
    @Select("select count(*) from ums_user")
    public int countUser();
    @Select("select * from ums_user where phone = #{phone}")
    User selectUserByPhone(String phone);

    void save(User user);
}
